package com.neepu.serviceImpl;

import com.neepu.dao.InfoManagerMapper;
import com.neepu.pojo.Dutresult;
import com.neepu.pojo.Scourse;
import com.neepu.service.InfoManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("InfoManagerService")
public class InfoManagerServiceImpl implements InfoManagerService {

    @Autowired
    private InfoManagerMapper infoManagerMapper;

    @Override
    public List<Scourse> getTeacherByStudentId(String studentID) {
        return infoManagerMapper.getTeacherByStudentId(studentID);
    }

    @Override
    public List<Scourse> getTeacherByTeacherId(String teacherID) {
        return infoManagerMapper.getTeacherByTeacherId(teacherID);
    }

    @Override
    public List<Scourse> getAllTeacher() {
        return infoManagerMapper.getAllTeacher();
    }

    @Override
    public Scourse getTeacherById(Integer id) {
        return infoManagerMapper.getTeacherById(id);
    }

    @Override
    public void updateScourse(String studentID, String sourceID) {
        infoManagerMapper.updateScourse(studentID,sourceID);
    }

    @Override
    public List<Scourse> getTeacherByStudentIdAndStatus(String userID, int status) {
        return infoManagerMapper.getTeacherByStudentIdAndStatus(userID,status);
    }
}
